﻿package client;
import client.SaleComPost_GUI;
import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;

import java.awt.Dialog.ModalityType;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Font;

public class SaleApplySuc_GUI extends JDialog {

	private final JPanel contentPanel = new JPanel();

	/**
	 * Launch the application.
	 */
	/*public static void main(String[] args) {
		try {
			SaleApplySuc_GUI dialog = new SaleApplySuc_GUI();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public SaleApplySuc_GUI() {
		setTitle("\u5E94\u8058\u6210\u529F");
		setModalityType(ModalityType.APPLICATION_MODAL);
		setBounds(100, 100, 450, 300);
		setModalityType(ModalityType.APPLICATION_MODAL);
		getContentPane().setLayout(new BorderLayout());
		contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
		getContentPane().add(contentPanel, BorderLayout.CENTER);
		contentPanel.setLayout(null);
		{
			JLabel label = new JLabel("\u606D\u559C\u60A8\u6210\u529F\u6210\u4E3A\u672C\u516C\u53F8\u804C\u5458\uFF01");
			label.setFont(new Font("宋体", Font.PLAIN, 18));
			label.setBounds(39, 28, 247, 44);
			contentPanel.add(label);
		}
		{
			JButton button = new JButton("\u8FDB\u5165\u516C\u53F8");
			button.setFont(new Font("宋体", Font.PLAIN, 15));
			button.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					dispose();
					SaleComPost_GUI salecompost =new SaleComPost_GUI();
					salecompost.setLocationRelativeTo(null);
					salecompost.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
					salecompost.setVisible(true);
					
				}
			});
			button.setBounds(95, 106, 104, 51);
			contentPanel.add(button);
		}
		
			JButton button2 = new JButton("\u79BB\u5F00\u516C\u53F8");
			button2.setFont(new Font("宋体", Font.PLAIN, 15));
			button2.setBounds(232, 106, 98, 51);
			contentPanel.add(button2);
			button2.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					dispose();
				}
			});
		
	
	}

}
